﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Guline.Iuh.TichLuy.Models
{
    public class Tin
    {
        public int ID { get; set; }
        public string TieuDe { get; set; }
        public string HinhDaiDien { get; set; }
        public string NoiDung { get; set; }
        public DateTime NgayTao { get; set; }
        public int NguoiTaoID { get; set; }
         [ForeignKey("NguoiTaoID")]
        public UserProfile NguoiTao { get; set; }
        public Nullable<DateTime> NgayUpdate { get; set; }

        public Nullable<int> NguoiUpdateID { get; set; }
        [ForeignKey("NguoiUpdateID")]
        public UserProfile NguoiUpdate { get; set; }
        public int LoaiTinID { get; set; }
        [ForeignKey("LoaiTinID")]
        public LoaiTin LoaiTin { get; set; }
    }
}